package com.elec.controller.front;

import com.elec.domain.R;
import com.elec.service.NotificationRecordService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author yu
 * @date 2024/7/7
 */
@RestController
@RequestMapping("front/notification")
public class NotificationController {
    @Resource
    private NotificationRecordService notificationRecordService;
    @GetMapping("getMyNotification")
    public R getMyNotification() {
        return notificationRecordService.getMyNotification();
    }
    @PutMapping("{id}")
    public R readNotification(@PathVariable Long id){
        return notificationRecordService.readNotification(id);
    }
}
